<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">

        <div class="form-group">
            <label for="c-group_id" class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
            <div class="col-xs-12 col-sm-4">
                {$groupList}
            </div>
        </div>

    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text"
                value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-password" data-rule="password" class="form-control" name="row[password]" type="password" value="" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-email" data-rule="" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text"
                value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text"
                    value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload"
                            data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                            data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i>
                            {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose"
                            data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-level" class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-level" data-rule="required" class="form-control" name="row[level]" type="number"
                value="{$row.level}">
        </div>
    </div> -->


    <div class="form-group">
        <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="number"
                value="{$row.money}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-score" class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number"
                value="{$row.score}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-xf_gold" class="control-label col-xs-12 col-sm-2">{:__('消费共享金')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-xf_gold" data-rule="required" class="form-control" name="row[xf_gold]" type="number"
                value="{$row.xf_gold}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-tg_gold" class="control-label col-xs-12 col-sm-2">{:__('推广共享金')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-tg_gold" data-rule="required" class="form-control" name="row[tg_gold]" type="number"
                value="{$row.tg_gold}">
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('是否实名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[real]-0"><input id="row[real]-0" {if $row['real']==0||$row['real']==-1}disabled{/if}
                        name="row[real]" type="radio" value="0" {in name="$row['real']" value="0" }checked{/in} />
                    未实名</label>
                <label for="row[real]-1"><input id="row[real]-1" {if $row['real']==0||$row['real']==-1}disabled{/if}
                        name="row[real]" type="radio" value="1" {in name="$row['real']" value="1" }checked{/in} />
                    已实名</label>
                <label for="row[real]--1"><input id="row[real]--1" {if $row['real']==0||$row['real']==-1}disabled{/if}
                        name="row[real]" type="radio" value="-1" {in name="$row['real']" value="-1" }checked{/in} />
                    实名失败</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('冻结用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[state]-0"><input id="row[state]-0"
                        name="row[state]" type="radio" value="0" {in name="$row['state']" value="0" }checked{/in} />冻结
                    </label>
                <label for="row[state]-1"><input id="row[state]-1"
                        name="row[state]" type="radio" value="1" {in name="$row['state']" value="1" }checked{/in} />
                    正常</label>
             
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>